home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / software / fredfish / 1050.lha / Programs / Binary_dt / source / classinit.asm < prev    next >
Assembly Source File  |  1994-12-06  |  3KB  |  117 lines

  1. ;
  2. ; $PROJECT: binary.datatype
  3. ;
  4. ; $VER: classinit.asm 39.2 (06.12.94)
  5. ;
  6. ; by
  7. ;
  8. ; Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  9. ;
  10. ; (C) Copyright 1994
  11. ; All Rights Reserved !
  12. ;
  13. ; $HISTORY:
  14. ;
  15. ; 06.12.94 : 039.002 : RCS test
  16. ; 14.11.94 : 039.001 :  initial
  17. ;
  18.  
  19. ;---------------------------------------------------------------------------
  20.  
  21.         INCLUDE "exec/types.i"
  22.         INCLUDE "exec/libraries.i"
  23.         INCLUDE "exec/lists.i"
  24.         INCLUDE "exec/alerts.i"
  25.         INCLUDE "exec/initializers.i"
  26.         INCLUDE "exec/resident.i"
  27.         INCLUDE "libraries/dos.i"
  28.  
  29.         INCLUDE "binary_rev.i"
  30.         INCLUDE "classbase.i"
  31.  
  32. ;---------------------------------------------------------------------------
  33.  
  34.         XREF    _LibInit
  35.         XREF    _LibOpen
  36.         XREF    _LibClose
  37.         XREF    _LibExpunge
  38.  
  39.         XREF    _ObtainBinaryEngine
  40.  
  41.         XREF    ENDCODE
  42.  
  43.         SECTION CODE
  44.  
  45. ;---------------------------------------------------------------------------
  46.  
  47.         XDEF    LibReserved
  48.  
  49. ;---------------------------------------------------------------------------
  50.  
  51. ; First executable location, must return an error to the caller
  52. Start:
  53.         moveq   #-1,d0
  54.         rts
  55.  
  56. ;-----------------------------------------------------------------------
  57.  
  58. ROMTAG:
  59.         DC.W    RTC_MATCHWORD           ; UWORD RT_MATCHWORD
  60.         DC.L    ROMTAG                  ; APTR  RT_MATCHTAG
  61.         DC.L    ENDCODE                 ; APTR  RT_ENDSKIP
  62.         DC.B    RTF_AUTOINIT            ; UBYTE RT_FLAGS
  63.         DC.B    VERSION                 ; UBYTE RT_VERSION
  64.         DC.B    NT_LIBRARY              ; UBYTE RT_TYPE
  65.         DC.B    0                       ; BYTE  RT_PRI
  66.         DC.L    LibName                 ; APTR  RT_NAME
  67.         DC.L    LibId                   ; APTR  RT_IDSTRING
  68.         DC.L    LibInitTable            ; APTR  RT_INIT
  69.  
  70. LibName DC.B 'binary.datatype',0
  71. LibId   VSTRING
  72.  
  73.         CNOP    0,4
  74.  
  75. LibInitTable:
  76.         DC.L    ClassBase_SIZEOF
  77.         DC.L    LibFuncTable
  78.         DC.L    LibDataTable
  79.         DC.L    _LibInit
  80.  
  81. V_DEF   MACRO
  82.         DC.W    \1+(*-LibFuncTable)
  83.         ENDM
  84.  
  85. LibFuncTable:
  86.         DC.W    -1
  87.         V_DEF   _LibOpen
  88.         V_DEF   _LibClose
  89.         V_DEF   _LibExpunge
  90.         V_DEF   LibReserved
  91.  
  92.         V_DEF   _ObtainBinaryEngine
  93.  
  94.         DC.W   -1
  95.  
  96. LibDataTable:
  97.         INITBYTE   LN_TYPE,NT_LIBRARY
  98.         INITLONG   LN_NAME,LibName
  99.         INITBYTE   LIB_FLAGS,(LIBF_SUMUSED!LIBF_CHANGED)
  100.         INITWORD   LIB_VERSION,VERSION
  101.         INITWORD   LIB_REVISION,REVISION
  102.         INITLONG   LIB_IDSTRING,LibId
  103.         DC.W       0
  104.  
  105.         CNOP    0,4
  106.  
  107. ;-----------------------------------------------------------------------
  108.  
  109. LibReserved:
  110.         moveq   #0,d0
  111.         rts
  112.  
  113. ;-----------------------------------------------------------------------
  114.  
  115.         END
  116.  
  117.